<template>
  <div class="home">
    <h2>这是Home内容</h2>

  </div>
</template>

<script lang="ts" setup>
import { onMounted } from "vue"
import { useRouter } from "vue-router";

const route = useRouter()

onMounted(() => {
  setTimeout(() => {
    //编程式路由导航，例如 登陆正确，跳转个人中心
    route.push('/news')
  }, 3000)
})


</script>

<style lang="scss" scoped></style>
